<template>
    <van-nav-bar :title="title" :left-text="backText" :left-arrow="backText ? true:false">
        <template #right>
            <van-icon name="weapp-nav" size="20" color="#000"/>
        </template>
    </van-nav-bar>
</template>

<script setup>
    const props = defineProps({
        backText:{
            type:String,
            default:'返回'
        },
        title:{
            type:String,
            default:''
        }
    })
   
    
</script>

<style scoped>

</style>